package com.zsd.android.dblib.bean;

import org.w3c.dom.Element;
import org.w3c.dom.NodeList;

public class UpdateDb {

    private String sqlRename;
    private String sqlCreate;
    private String sqlInsert;
    private String sqlDelete;

    public UpdateDb(Element element) {
        NodeList sqls = element.getElementsByTagName("sql_rename");
        sqlRename = sqls.item(0).getTextContent();

        sqls = element.getElementsByTagName("sql_create");
        sqlCreate = sqls.item(0).getTextContent();

        sqls = element.getElementsByTagName("sql_insert");
        sqlInsert = sqls.item(0).getTextContent();

        sqls = element.getElementsByTagName("sql_delete");
        sqlDelete = sqls.item(0).getTextContent();
    }

    public String getSqlRename() {
        return sqlRename;
    }

    public String getSqlCreate() {
        return sqlCreate;
    }

    public String getSqlInsert() {
        return sqlInsert;
    }

    public String getSqlDelete() {
        return sqlDelete;
    }
}
